package com.example.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author 罗文斌
 * @Date 2023/7/19
 * @Version 1.0.0
 */
@Data
@TableName("sys_login_log")
public class LoginLog implements Serializable {

    private static final long serialVersionUID = -5452120347725508522L;
    @TableId(type = IdType.AUTO)
    private String id;
    private String userId;
    private String type;
    private String ip;
    private String agent;
    private String createTime;

    public LoginLog(String id, String userId, String ip, String agent, String type) {
        this.id = id;
        this.userId = userId;
        this.ip = ip;
        this.agent = agent;
        this.type = type;
    }
}
